<ion-view view-title="{{data.tagTitle}}中心" class="center" hide-nav-bar="true">

	<!--描述：滑动块-->
	<ion-content>
		<ion-scroll delegate-handle="scroll" direction="y" ng-style="myObj" lazy-scroll>
			<!--描述：下拉刷新-->
			<ion-refresher pulling-text="下拉刷新..." on-refresh="doRefresh()"></ion-refresher>
			
			<!--卖家：审核中、审核失败-->
			<div ng-if="firstHideAplay&&(buySaleInfo.approved!=1&&data.issue_type!=1)">
				<!--<div class="sellerHeader-ios" ng-if="isIOSApp()"></div>-->
				<div class="sellerHeader headerDiv" ng-class="{'sellerHeader-ios':isIOSApp()}">
					<div class="headerBar">
						<img src="./img/guilin/center/sellerIcon.png" ng-click="doNavLeft()"/><span ng-click="doNavLeft()">&nbsp;卖家</span>
						<img src="./img/guilin/center/centerSetting_icon.png" ng-click="doNavRight()" class="right-zhang"/>
					</div>
					<img src="{{buySaleInfo.avatar}}" ng-if="data.issue_type!=1" class="sellerAvatarPng"/>
					<div class="storeNameDiv level">
						<p class="storeName">{{buySaleInfo.store_name}}</p>
						<div ng-if="data.user_type=='2'&&data.has_store">
							<div class="storeType left-zhang">{{buySaleInfo.issue_name}}</div>
							<div class="shop_grade grade0-0 left-zhang" style="width: 30px;"></div><!--星级-->
							<div class="applying" ng-bind="buySaleInfo.approved==2?'(审核未通过)':'(审核中)'"></div>
						</div>
					</div>
				</div>
					
				<!--approved：0审核中  1审核通过   2审核失败-->	
				<div class="applv">
					<img src="{{buySaleInfo.approved==2?'./img/guilin/center/apply_fail_icon.png':'./img/guilin/center/apply_ing_icon.png'}}" />
					<div class="title" ng-bind="buySaleInfo.approved==2?'审核未通过':'店铺审核中'"></div>
					<div class="status" ng-bind="buySaleInfo.approved==2?buySaleInfo.approvedremark:'我们会在1-5个工作日与您联系'"></div>
					<div class="applyBtn" ng-bind="buySaleInfo.approved==2?'重新编辑':'继续编辑'" ng-click="onshow_write()"></div>
				</div>
			</div>
			
			
			
			<!--卖家的正常显示 -->
			<div ng-if="buySaleInfo.approved==1&&data.issue_type!=1">
				<!--<div class="sellerHeader-ios" ng-if="isIOSApp()"></div>-->
				<div class="sellerHeader headerDiv" ng-class="{'sellerHeader-ios':isIOSApp()}">
					<div class="headerBar">
						<img src="./img/guilin/center/sellerIcon.png" ng-click="doNavLeft()"/><span ng-click="doNavLeft()">&nbsp;卖家</span>
						<img src="./img/guilin/center/centerSetting_icon.png" ng-click="doNavRight()" class="right-zhang"/>
						<img src="./img/guilin/center/email_icon.png" on-tap="onshow_go('t-message',{'tab':0})" class="right-zhang" style="margin-right: 25px;"/><span class="num email" ng-if="buySaleInfo.count.unreadmail" on-tap="onshow_go('t-message',{'tab':0})">{{buySaleInfo.count.unreadmail}}</span>
						<img src="./img/guilin/center/erweima_icon.png" on-tap="showBigImg()" class="right-zhang" style="margin-right: 25px;"/>
					</div>
					<img src="{{buySaleInfo.avatar}}" class="sellerAvatarPng" on-tap="onshow_go('t-store-data')"/>
					<div class="storeNameDiv level">
						<p class="storeName">{{buySaleInfo.store_name}}</p>
						<div ng-if="data.user_type=='2'&&data.has_store">
							<div class="storeType">{{buySaleInfo.issue_name}}</div>
							<div class="shop_grade grade{{buySaleInfo.grade_level_type}}-{{buySaleInfo.grade_level_star}}" style="margin-left: -5px;"></div><!--星级-->
						</div>
					</div>
					<div class="storeInfoDiv">
						<p ng-repeat="point in buySaleInfo.store_point">{{point.name}}：<span>{{point.avg_point}}</span></p>
					</div>
				</div>
				
				<div class="list">
					<li class="item saleInfo">
						<div class="row padding-0">
							<div class="col padding-0" on-tap="onshow_go('productmanager_brand')">{{buySaleInfo.count.brands}}<div class="name">品牌</div></div>
							<div class="col padding-0" on-tap="onshow_go('productmanager')">{{buySaleInfo.count.up_goods}}<div class="name">上架商品</div></div>
							<div class="col padding-0">{{buySaleInfo.sale_score.current.amount}}<div class="name">当月销量</div></div>
							<div class="col padding-0">{{buySaleInfo.sale_score.last.amount}}<div class="name">上月销量</div></div>
						</div>
					</li>
					
					<li class="item titleItem mt10" rights-ctrl-menu data-authname="'订单一览','退货管理','退款管理','优惠券一览','供应商发起的活动','我参加的活动','我发起的活动'">等待处理</li>
					<li class="item menuItem" rights-ctrl-menu data-authname="'订单一览','退货管理','退款管理','优惠券一览','供应商发起的活动','我参加的活动','我发起的活动'">
						<div class="row">
							<div class="col col-25" on-tap="onshow_go('afallseller',{'type':'ship'})" rights-ctrl-menu data-authname="'订单一览','退货管理','退款管理'">
								<img src="./img/guilin/center/wait_send_icon.png" />
								<span class="num shippedNum" ng-if="buySaleInfo.count.noshiped">{{buySaleInfo.count.noshiped}}</span>
								<div>等待发货</div>
							</div>
							<div class="col col-25" on-tap="onshow_go('afallseller',{'type':'refunded'})" rights-ctrl-menu data-authname="'订单一览','退货管理','退款管理'">
								<img src="./img/guilin/center/customer service_icon.png" />
								<span class="num shippedNum" ng-if="buySaleInfo.count.return">{{buySaleInfo.count.return}}</span>
								<div>售后处理</div>
							</div>
							<div class="col col-25" on-tap="onshow_go('wenda')" rights-ctrl-menu data-authname="'订单一览','退货管理','退款管理'">
								<img src="./img/guilin/center/QA.icon@2x.png" />
								<span class="num shippedNum" ng-if="buySaleInfo.count.no_consult">{{buySaleInfo.count.no_consult}}</span>
								<div>商品问答</div>
							</div>
							<div class="col col-25" ng-if="data.store_type!='1'" on-tap="onshow_go('joinactivity')" rights-ctrl-menu data-authname="'优惠券一览','供应商发起的活动','我参加的活动','我发起的活动'">
								<img src="./img/guilin/center/join_act_icon.png" />
								<span class="num shippedNum" ng-if="buySaleInfo.count.unjoin">{{buySaleInfo.count.unjoin}}</span>
								<div>参加活动</div>
							</div>
						</div>
					</li>
					
					<li class="item titleItem mt10" on-tap="onshow_go('first',{'store_id':data.store_id})">店铺管理<span class="more">进入店铺</span><img src="./img/guilin/center/icon_ck@2x.png" class="jt" /></li>
					<li class="item menuItem" rights-ctrl-menu data-authname="'店员管理','角色管理','供应商一览','我要找供应商','加盟店一览','授信还款','我要找加盟店','授权中心一览','授信还款','我要找授权中心','我要招员工'"><!--可以不用判断store_type，因为1、2、3、4总会至少出现其中的一个-->
						<div class="row"><!--在这行添加菜单的时候，必须保证最多只能显示4个-->
							<div class="col col-25" on-tap="onshow_go('employeemanager')" rights-ctrl-menu data-authname="'店员管理','角色管理'">
								<img src="./img/guilin/center/employee_man_icon.png" />
								<div>店员管理</div>
							</div>
							<!--授权中心使用-->
							<div class="col col-25" on-tap="onshow_go('distributor_sxqd')" ng-if="data.store_type=='3'||data.store_type=='4'&&!(user_info.is_warehouse=='true')" rights-ctrl-menu data-authname="'供应商一览','我要找供应商'">
								<img src="./img/guilin/center/my_supplier_icon.png" />
								<div>我的供应商</div>
							</div>
							<!--加盟店使用，共用distributor_sxqd页面-->
							<!--<div class="col col-25" on-tap="onshow_go('mybrandoperator')" ng-if="data.store_type=='3'">
								<img src="./img/guilin/center/my_supplier_icon.png" />
								<div>我的供应商</div>
							</div>-->
							<!--加盟店使用，共用myagent页面，原页面distributor-->
							<div class="col col-25" on-tap="onshow_go('myagent',{'isAgent':false})" ng-if="data.store_type=='3'&&!(user_info.is_warehouse=='true')" rights-ctrl-menu data-authname="'加盟店一览','授信还款','我要找加盟店'">
								<img src="./img/guilin/center/JM.icon@2x.png" />
								<div>我的加盟店</div>
							</div>
							<div class="col col-25" on-tap="onshow_go('myagent')" ng-if="data.store_type=='1'||data.store_type=='2'" rights-ctrl-menu data-authname="'授权中心一览','授信还款','我要找授权中心'">
								<img src="./img/guilin/center/JM.icon@2x.png" />
								<div>我的授权中心</div>
							</div>
							<div class="col col-25" on-tap="onshow_go('myfriend')" ng-if="data.store_type=='4'&&!(user_info.is_warehouse=='true')">
								<img src="./img/guilin/center/friend.icon@2x.png" />
								<div>我的好友</div>
							</div>
							<div class="col col-25" on-tap="onshow_jobs()" rights-ctrl-menu data-authname="'我要招员工'">
								<img src="./img/guilin/center/staff.icon@2x.png" />
								<div>我要找员工</div>
							</div>
						</div>
					</li>
					<!--<li class="item menuItem">
						<div class="row">
							<div class="col col-25" on-tap="onshow_jobs()" rights-ctrl-menu data-authname="'我要招员工'">
								<img src="./img/guilin/center/staff.icon@2x.png" />
								<div>我要找员工</div>
							</div>
						</div>
					</li>-->
					
					<li class="item titleItem mt10">交易管理</li>
					<li class="item menuItem">
						<div class="row">
							<div class="col col-25" on-tap="onshow_go('productmanager_brand')" ng-if="!(user_info.is_warehouse=='true')" rights-ctrl-menu data-authname="'品牌管理'">
								<img src="./img/guilin/center/brand.icon@2x.png" />
								<div>品牌管理</div>
							</div>
							<div class="col col-25" on-tap="onshow_go('productmanager')" ng-if="!(user_info.is_warehouse=='true')" rights-ctrl-menu data-authname="'销售中商品'">
								<img src="./img/guilin/center/commodity.icon@2x.png" />
								<div>商品管理</div>
							</div>
							<div class="col col-25" on-tap="onshow_go('afallseller')" rights-ctrl-menu data-authname="'订单一览','退货管理','退款管理'">
								<img src="./img/guilin/center/order.icon@2x.png" />
								<div>订单管理</div>
							</div>
							<div class="col col-25" on-tap="onshow_go('comment_seller')" rights-ctrl-menu data-authname="'评价管理'">
								<img src="./img/guilin/center/evaluate.icon@2x.png"/>
								<div>评价管理</div>
							</div>
						</div>
					</li>
					
					<li class="item titleItem mt10" rights-ctrl-menu data-authname="'优惠券一览','供应商发起的活动','我参加的活动','我发起的活动'">营销管理</li>
					<li class="item menuItem" rights-ctrl-menu data-authname="'优惠券一览','供应商发起的活动','我参加的活动','我发起的活动'">
						<div class="row">
							<div class="col col-25" on-tap="onshow_go('issuediscount')" rights-ctrl-menu data-authname="'优惠券一览'">
								<img src="./img/guilin/center/coupon.icon@2x.png" />
								<div>优惠券</div>
							</div>
							<div class="col col-25" on-tap="onshow_go('proorder')" rights-ctrl-menu data-authname="'优惠券一览','供应商发起的活动','我参加的活动','我发起的活动'">
								<img src="./img/guilin/center/CX.icon@2x.png" />
								<div>订单促销</div>
							</div>
						</div>
					</li>
					<li class="item item-borderless padding-0 mt10"></li>
				</div>
			</div>
			
			
			<!--买家的正常显示 -->
			<div ng-if="data.issue_type==1">
				<div class="buyerHeader headerDiv" ng-class="{'buyerHeader-ios':isIOSApp()}">
					<div class="headerBar">
						<img src="./img/guilin/center/icon_maijia@3x.png" ng-click="doNavLeft()"/><span ng-click="doNavLeft()">&nbsp;买家</span>
						<img src="./img/guilin/center/centerSetting_icon.png" ng-click="doNavRight()" class="right-zhang"/>
						<img src="./img/guilin/center/email_icon.png" on-tap="onshow_go('t-message',{'tab':0})" class="right-zhang" style="margin-right: 25px;"/><span class="num email" ng-if="buySaleInfo.count.unreadmail" on-tap="onshow_go('t-message',{'tab':0})">{{buySaleInfo.count.unreadmail}}</span>
					</div>
					<img src="{{buySaleInfo.avatar||'./img/guilin/other/default_logo.png'}}" class="buyerAvatarPng" on-tap="onshow_go('t-personal-data')"/>
					<div class="storeNameDiv" style="margin-top: 10px;">
						<p class="storeName">{{buySaleInfo.nickname||buySaleInfo.name}}</p>
						<div class="member">{{buySaleInfo.member_lv_name}}</div>
					</div>
				</div>
				
				<div class="list">
					<li class="item saleInfo">
						<div class="row padding-0">
							<div class="col padding-0" on-tap="onshow_go('favorite')">{{buySaleInfo.count.goods_fav}}<div class="name">收藏夹</div></div>
							<div class="col padding-0" on-tap="onshow_go('myfriendjxs')">{{buySaleInfo.count.friend_store}}<div class="name">好友店铺</div></div>
							<div class="col padding-0" on-tap="onshow_go('mybrowsing')">{{buySaleInfo.count.view_history}}<div class="name">足迹</div></div>
						</div>
					</li>
					
					<li class="item titleItem mt10" on-tap="onshow_go('afall',{ 'type': 0})">全部订单<span class="more">查看更多</span><img src="./img/guilin/center/icon_ck@2x.png" class="jt" /></li>
					<li class="item menuItem">
						<div class="row">
							<div class="col col-25" on-tap="onshow_go('afall', { 'type': 1})">
								<img src="./img/guilin/center/icon_pay@2x.png" />
								<span class="num shippedNum" ng-if="buySaleInfo.count.nopayed">{{buySaleInfo.count.nopayed}}</span>
								<div>待付款</div>
							</div>
							<div class="col col-25" on-tap="onshow_go('afall', { 'type': 2})">
								<img src="./img/guilin/center/icon_fahuo@2x.png" />
								<span class="num shippedNum" ng-if="buySaleInfo.count.ship">{{buySaleInfo.count.ship}}</span>
								<div>待发货</div>
							</div>
							<div class="col col-25" on-tap="onshow_go('afall', { 'type': 3})">
								<img src="./img/guilin/center/icon_shouhuo@2x.png" />
								<span class="num shippedNum" ng-if="buySaleInfo.count.shipped">{{buySaleInfo.count.shipped}}</span>
								<div>待收货</div>
							</div>
							<div class="col col-25" on-tap="onshow_go('afall', { 'type': 4})">
								<img src="./img/guilin/center/icon_pj@2x.png" />
								<span class="num shippedNum" ng-if="buySaleInfo.count.comment">{{buySaleInfo.count.comment}}</span>
								<div>待评价</div>
							</div>
						</div>
					</li>
					
					<li class="item item-input titleItem buyer mt10" on-tap="onshow_go('predepositwater')">
						<img src="./img/guilin/center/icon_deposit@2x.png" class="titleImg"/>
						我的预存款
						<img src="./img/guilin/center/icon_ck@2x.png" class="jt" />
					</li>
					<li class="item item-input titleItem buyer" on-tap="onshow_go('redpocket')">
						<img src="./img/guilin/center/icon_envelopes@2x.png" class="titleImg"/>
						我的红包
						<span class="num redbagNum" ng-if="buySaleInfo.count.unreceive_redbag">{{buySaleInfo.count.unreceive_redbag}}</span>
						<img src="./img/guilin/center/icon_ck@2x.png" class="jt" />
					</li>
					<li class="item item-input titleItem buyer" on-tap="onshow_go('mypoint')">
						<img src="./img/guilin/center/icon_integral@2x.png" class="titleImg"/>
						我的积分
						<img src="./img/guilin/center/icon_ck@2x.png" class="jt" />
					</li>
					<li class="item item-input titleItem buyer" on-tap="onshow_go('couponlist')">
						<img src="./img/guilin/center/icon_Voucher@2x.png" class="titleImg"/>
						我的优惠券
						<img src="./img/guilin/center/icon_ck@2x.png" class="jt" />
					</li>
					<li class="item item-input titleItem buyer" on-tap="onshow_go('comment')">
						<img src="./img/guilin/center/icon_evaluate@2x.png" class="titleImg"/>
						我的评价
						<img src="./img/guilin/center/icon_ck@2x.png" class="jt" />
					</li>
					<li class="item item-input titleItem buyer" on-tap="onshow_go('pbuy')">
						<img src="./img/guilin/center/icon_tobuy@2x.png" class="titleImg"/>
						我的求购
						<img src="./img/guilin/center/icon_ck@2x.png" class="jt" />
					</li>
					<!--<li class="item item-input titleItem buyer" on-tap="onrelogin()">
						<img src="./img/guilin/center/icon_tobuy@2x.png" class="titleImg"/>
						重新登陆
						<img src="./img/guilin/center/icon_ck@2x.png" class="jt" />
					</li>-->
				</div>
			</div>
		
		</ion-scroll>
		
		<!--二维码-->
		<!--<script type="text/ng-template" id="erweima.html">
			<img src="{{buySaleInfo.store_qr}}" width="100%" />
		</script>-->
		
		
	</ion-content>
</ion-view>